fixed local users' names showing up twice in mentions
This commit is contained in:
parent
2832ed9770
commit
b64c5179b8
2 changed files with 4 additions and 3 deletions
|
@ -148,7 +148,6 @@ export async function parsePost(data, num_replies) {
|
|||
post.boost_count = data.reblogs_count;
|
||||
post.reply_count = data.replies_count;
|
||||
post.mentions = data.mentions;
|
||||
if (data.media_attachments.length > 0) console.log(data.media_attachments);
|
||||
post.files = data.media_attachments;
|
||||
post.url = data.url;
|
||||
post.visibility = data.visibility;
|
||||
|
@ -221,7 +220,7 @@ export async function parseUser(data) {
|
|||
if (data.acct.includes('@'))
|
||||
user.host = data.acct.split('@')[1];
|
||||
else
|
||||
user.host = data.username + '@' + Client.get().instance.host;
|
||||
user.host = Client.get().instance.host;
|
||||
|
||||
user.emojis = [];
|
||||
data.emojis.forEach(emoji_data => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue