mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 15:20:52 +01:00
Fix group forums
This commit is contained in:
parent
97f4dd17e1
commit
22926bf0b4
@ -192,7 +192,7 @@ public class ForumThreadComment implements Runnable, ISerialize {
|
|||||||
if (!this.needsUpdate)
|
if (!this.needsUpdate)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE guilds_forums_comments` SET `state` = ?, `admin_id` = ? WHERE `id` = ?;")) {
|
try (Connection connection = Emulator.getDatabase().getDataSource().getConnection(); PreparedStatement statement = connection.prepareStatement("UPDATE guilds_forums_comments SET `state` = ?, `admin_id` = ? WHERE `id` = ?")) {
|
||||||
statement.setInt(1, this.state.getStateId());
|
statement.setInt(1, this.state.getStateId());
|
||||||
statement.setInt(2, this.adminId);
|
statement.setInt(2, this.adminId);
|
||||||
statement.setInt(3, this.commentId);
|
statement.setInt(3, this.commentId);
|
||||||
|
@ -60,6 +60,8 @@ public class GuildForumModerateMessageEvent extends MessageHandler {
|
|||||||
comment.setAdminId(this.client.getHabbo().getHabboInfo().getId());
|
comment.setAdminId(this.client.getHabbo().getHabboInfo().getId());
|
||||||
this.client.sendResponse(new PostUpdateMessageComposer(guild.getId(), thread.getThreadId(), comment));
|
this.client.sendResponse(new PostUpdateMessageComposer(guild.getId(), thread.getThreadId(), comment));
|
||||||
|
|
||||||
|
Emulator.getThreading().run(comment);
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 10:
|
case 10:
|
||||||
case 20:
|
case 20:
|
||||||
|
@ -51,6 +51,8 @@ public class GuildForumModerateThreadEvent extends MessageHandler {
|
|||||||
thread.setState(ForumThreadState.fromValue(state));
|
thread.setState(ForumThreadState.fromValue(state));
|
||||||
thread.setAdminId(this.client.getHabbo().getHabboInfo().getId());
|
thread.setAdminId(this.client.getHabbo().getHabboInfo().getId());
|
||||||
|
|
||||||
|
Emulator.getThreading().run(thread);
|
||||||
|
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case 10:
|
case 10:
|
||||||
case 20:
|
case 20:
|
||||||
|
Loading…
Reference in New Issue
Block a user