forked from AkkomaGang/akkoma-fe
Use data.uri instead of url
This commit is contained in:
parent
0a56cf37a9
commit
4d44030ca7
2 changed files with 3 additions and 2 deletions
|
@ -194,11 +194,11 @@ const ExtraButtons = {
|
|||
}
|
||||
},
|
||||
showFediLinks () {
|
||||
return this.$store.getters.mergedConfig.showFediLinks === true && this.status.visibility != 'direct'
|
||||
return this.$store.getters.mergedConfig.showFediLinks === true
|
||||
},
|
||||
fediLinkURL () {
|
||||
try {
|
||||
return this.statusLink.replace(/^https?/, 'web+ap')
|
||||
return this.status.external_uri.replace(/^https?/, 'web+ap')
|
||||
} catch (e) {
|
||||
return null
|
||||
}
|
||||
|
|
|
@ -316,6 +316,7 @@ export const parseStatus = (data) => {
|
|||
|
||||
output.summary_raw_html = escape(data.spoiler_text)
|
||||
output.external_url = data.url
|
||||
output.external_uri = data.uri
|
||||
output.poll = data.poll
|
||||
if (output.poll) {
|
||||
output.poll.options = (output.poll.options || []).map(field => ({
|
||||
|
|
Loading…
Reference in a new issue