wip #6441
This commit is contained in:
parent
41b491fa7c
commit
c4c20bee7c
28 changed files with 44 additions and 40 deletions
|
|
@ -86,7 +86,7 @@ export async function updateHashtag(user: User, tag: string, isUserAttached = fa
|
|||
}
|
||||
} else {
|
||||
if (isUserAttached) {
|
||||
Hashtags.save({
|
||||
Hashtags.insert({
|
||||
id: genId(),
|
||||
name: tag,
|
||||
mentionedUserIds: [],
|
||||
|
|
@ -103,7 +103,7 @@ export async function updateHashtag(user: User, tag: string, isUserAttached = fa
|
|||
attachedRemoteUsersCount: Users.isRemoteUser(user) ? 1 : 0,
|
||||
} as Hashtag);
|
||||
} else {
|
||||
Hashtags.save({
|
||||
Hashtags.insert({
|
||||
id: genId(),
|
||||
name: tag,
|
||||
mentionedUserIds: [user.id],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue