some more post fields

This commit is contained in:
Henry Jameson 2019-01-17 23:44:31 +03:00
parent af36f4915a
commit 6c70e9950c
2 changed files with 11 additions and 1 deletions

View file

@ -141,7 +141,7 @@ const Status = {
if (this.status.user.id === this.$store.state.users.currentUser.id) { if (this.status.user.id === this.$store.state.users.currentUser.id) {
return false return false
} }
if (this.status.activity_type === 'repeat') { if (this.status.type === 'retweet') {
return false return false
} }
var checkFollowing = this.$store.state.config.replyVisibility === 'following' var checkFollowing = this.$store.state.config.replyVisibility === 'following'

View file

@ -127,6 +127,7 @@ export const parseStatus = (data) => {
output.in_reply_to_status_id = data.in_reply_to_id output.in_reply_to_status_id = data.in_reply_to_id
output.in_reply_to_user_id = data.in_reply_to_account_id output.in_reply_to_user_id = data.in_reply_to_account_id
output.in_reply_to_screen_name = data.in_reply_to_screen_name
// Not exactly the same but works // Not exactly the same but works
output.statusnet_conversation_id = data.id output.statusnet_conversation_id = data.id
@ -136,6 +137,10 @@ export const parseStatus = (data) => {
} }
output.summary = data.spoiler_text output.summary = data.spoiler_text
output.external_url = data.url
// FIXME missing!!
output.is_local = false
} else { } else {
output.favorited = data.favorited output.favorited = data.favorited
output.fave_num = data.fave_num output.fave_num = data.fave_num
@ -163,6 +168,9 @@ export const parseStatus = (data) => {
output.in_reply_to_status_id = data.in_reply_to_status_id output.in_reply_to_status_id = data.in_reply_to_status_id
output.in_reply_to_user_id = data.in_reply_to_user_id output.in_reply_to_user_id = data.in_reply_to_user_id
// Missing!! fix in UI?
output.in_reply_to_screen_name = null
output.statusnet_conversation_id = data.statusnet_conversation_id output.statusnet_conversation_id = data.statusnet_conversation_id
if (output.type === 'retweet') { if (output.type === 'retweet') {
@ -170,6 +178,8 @@ export const parseStatus = (data) => {
} }
output.summary = data.summary output.summary = data.summary
output.external_url = data.external_url
output.is_local = data.is_local
} }
output.id = String(data.id) output.id = String(data.id)