Merge branch 'develop' into deps-upgrade
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/pr/woodpecker Pipeline failed

This commit is contained in:
FloatingGhost 2022-08-01 12:41:55 +01:00
commit eedd00abb9
10 changed files with 1741 additions and 1642 deletions

View file

@ -34,8 +34,7 @@
"js-cookie": "^3.0.1", "js-cookie": "^3.0.1",
"localforage": "1.10.0", "localforage": "1.10.0",
"marked": "^4.0.17", "marked": "^4.0.17",
"marked-mfm": "^0.4.0", "marked-mfm": "^0.5.0",
"mfm-js": "^0.22.1",
"parse-link-header": "1.0.1", "parse-link-header": "1.0.1",
"phoenix": "1.6.2", "phoenix": "1.6.2",
"punycode.js": "2.1.0", "punycode.js": "2.1.0",

View file

@ -277,6 +277,22 @@ const Status = {
return mentions return mentions
}, },
mentionsMutedUser () {
// XXX: doesn't work on domain blocks, because users from blocked domains
// don't appear in `attentions' and therefore cannot be filtered.
let mentions = false
// find if user in mentions list is blocked
this.status.attentions.forEach((attn) => {
if (attn.id === this.currentUser.id) return
const relationship = this.$store.getters.relationship(attn.id)
if (relationship.muting) {
mentions = true
}
})
return mentions
},
muted () { muted () {
if (this.statusoid.user.id === this.currentUser.id) return false if (this.statusoid.user.id === this.currentUser.id) return false
const reasonsToMute = this.userIsMuted || const reasonsToMute = this.userIsMuted ||
@ -287,7 +303,9 @@ const Status = {
// bot status // bot status
(this.muteBotStatuses && this.botStatus && !this.compact) || (this.muteBotStatuses && this.botStatus && !this.compact) ||
// mentions blocked user // mentions blocked user
this.mentionsBlockedUser this.mentionsBlockedUser ||
// mentions muted user
this.mentionsMutedUser
return !this.unmuted && !this.shouldNotMute && reasonsToMute return !this.unmuted && !this.shouldNotMute && reasonsToMute
}, },
userIsMuted () { userIsMuted () {
@ -340,7 +358,7 @@ const Status = {
return (!this.shouldNotMute) && ( return (!this.shouldNotMute) && (
(this.muted && this.hideFilteredStatuses) || (this.muted && this.hideFilteredStatuses) ||
(this.userIsMuted && this.hideMutedUsers) || (this.userIsMuted && this.hideMutedUsers) ||
(this.status.thread_muted && this.hideMutedThreads) || ((this.status.thread_muted || this.mentionsMutedUser) && this.hideMutedThreads) ||
(this.muteWordHits.length > 0 && this.hideWordFilteredPosts) || (this.muteWordHits.length > 0 && this.hideWordFilteredPosts) ||
(this.mentionsBlockedUser && this.hideThreadsWithBlockedUsers) (this.mentionsBlockedUser && this.hideThreadsWithBlockedUsers)
) )

View file

@ -157,16 +157,19 @@
--emoji-size: 16px; --emoji-size: 16px;
& .body, & .body:not(:active),
& .attachments { & .attachments {
max-height: 3.25em; max-height: 3.25em;
} }
.body { .body {
overflow: hidden;
white-space: normal; white-space: normal;
min-width: 5em; min-width: 5em;
flex: 5 1 auto; flex: 5 1 auto;
}
.body:not(:active) {
overflow: hidden;
mask-size: auto 3.5em, auto auto; mask-size: auto 3.5em, auto auto;
mask-position: 0 0, 0 0; mask-position: 0 0, 0 0;
mask-repeat: repeat-x, repeat; mask-repeat: repeat-x, repeat;

View file

@ -23,7 +23,7 @@
"media_removal_desc": "Aquesta instància elimina els adjunts multimèdia dels apunts de les següents instàncies:", "media_removal_desc": "Aquesta instància elimina els adjunts multimèdia dels apunts de les següents instàncies:",
"not_applicable": "N/A", "not_applicable": "N/A",
"quarantine": "Quarantena", "quarantine": "Quarantena",
"quarantine_desc": "Aquesta instància només enviarà entrades públiques a les següents instàncies:", "quarantine_desc": "Aquesta instància no enviarà apunts a les següents instàncies:",
"reason": "Motiu", "reason": "Motiu",
"reject": "Rebutja", "reject": "Rebutja",
"reject_desc": "Aquesta instància no acceptarà missatges de les següents instàncies:", "reject_desc": "Aquesta instància no acceptarà missatges de les següents instàncies:",

View file

@ -23,7 +23,7 @@
"media_removal_desc": "This instance removes media from posts on the following instances:", "media_removal_desc": "This instance removes media from posts on the following instances:",
"not_applicable": "N/A", "not_applicable": "N/A",
"quarantine": "Quarantine", "quarantine": "Quarantine",
"quarantine_desc": "This instance will send only public posts to the following instances:", "quarantine_desc": "This instance will not send posts to the following instances:",
"reason": "Reason", "reason": "Reason",
"reject": "Reject", "reject": "Reject",
"reject_desc": "This instance will not accept messages from the following instances:", "reject_desc": "This instance will not accept messages from the following instances:",

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -57,12 +57,16 @@ const actions = {
commit('setList', { id, title }) commit('setList', { id, title })
}, },
setListAccounts ({ rootState, commit }, { id, accountIds }) { setListAccounts ({ rootState, commit }, { id, accountIds }) {
const saved = rootState.lists.allListsObject[id].accountIds
const added = accountIds.filter(id => !saved.includes(id))
const removed = saved.filter(id => !accountIds.includes(id))
commit('setListAccounts', { id, accountIds }) commit('setListAccounts', { id, accountIds })
rootState.api.backendInteractor.addAccountsToList({ id, accountIds }) if (added.length > 0) {
rootState.api.backendInteractor.removeAccountsFromList({ rootState.api.backendInteractor.addAccountsToList({ id, accountIds: added })
id, }
accountIds: rootState.lists.allListsObject[id].accountIds.filter(id => !accountIds.includes(id)) if (removed.length > 0) {
}) rootState.api.backendInteractor.removeAccountsFromList({ id, accountIds: removed })
}
}, },
deleteList ({ rootState, commit }, { id }) { deleteList ({ rootState, commit }, { id }) {
rootState.api.backendInteractor.deleteList({ id }) rootState.api.backendInteractor.deleteList({ id })
@ -76,7 +80,7 @@ export const getters = {
return state.allListsObject[id].title return state.allListsObject[id].title
}, },
findListAccounts: state => id => { findListAccounts: state => id => {
return state.allListsObject[id].accountIds return [...state.allListsObject[id].accountIds]
} }
} }

View file

@ -37,11 +37,11 @@
} }
._mfm_jump_ { ._mfm_jump_ {
animation: mfm-jump 0.75 linear infinite; animation: mfm-jump 0.75s linear infinite;
} }
._mfm_bounce_ { ._mfm_bounce_ {
animation: mfm-bounce 0.75 linear infinite; animation: mfm-bounce 0.75s linear infinite;
transform-origin: center bottom; transform-origin: center bottom;
} }
@ -67,7 +67,13 @@
font-size: 600%; font-size: 600%;
} }
/* blur */ ._mfm_blur_ {
filter: blur(6px);
transition: filter 0.3s
}
._mfm_blur_:hover {
filter: blur(0px);
}
._mfm_rainbow_ { ._mfm_rainbow_ {
animation: mfm-rainbow 1s linear infinite; animation: mfm-rainbow 1s linear infinite;

View file

@ -7645,10 +7645,10 @@ map-visit@^1.0.0:
dependencies: dependencies:
object-visit "^1.0.0" object-visit "^1.0.0"
marked-mfm@^0.4.0: marked-mfm@^0.5.0:
version "0.4.0" version "0.5.0"
resolved "https://registry.yarnpkg.com/marked-mfm/-/marked-mfm-0.4.0.tgz#d3094c42daaa57b1b0b263278633de82ebf62396" resolved "https://registry.yarnpkg.com/marked-mfm/-/marked-mfm-0.5.0.tgz#0632c4fa8f5044d350b3aaa771b136e5d50b4b60"
integrity sha512-2ZdBHGOV7BFJUcQNLp/jjwEE2IT1O5d1H7cd4dGeuOBI1nivuBCv1Azt7fbRlygfUSQ2rgGtFZ1ZbrP4dRhh3A== integrity sha512-nRazH80nu7gVEDeORQWCWehY3v7fofC4usKdY/d6mckxfRY4PrPNLM3iGpVedpij9ktmesWAtY7SpCLq/BxP4Q==
dependencies: dependencies:
"@babel/core" "^7.18.6" "@babel/core" "^7.18.6"
"@babel/preset-env" "^7.18.6" "@babel/preset-env" "^7.18.6"
@ -7787,13 +7787,6 @@ methods@~1.1.2:
resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee"
integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==
mfm-js@^0.22.1:
version "0.22.1"
resolved "https://registry.yarnpkg.com/mfm-js/-/mfm-js-0.22.1.tgz#ad5f0b95cc903ca5a5e414e2edf64ac4648dc8c2"
integrity sha512-UV5zvDKlWPpBFeABhyCzuOTJ3RwrNrmVpJ+zz/dFX6D/ntEywljgxkfsLamcy0ZSwUAr0O+WQxGHvAwyxUgsAQ==
dependencies:
twemoji-parser "14.0.x"
micromark@~2.11.0: micromark@~2.11.0:
version "2.11.4" version "2.11.4"
resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a" resolved "https://registry.yarnpkg.com/micromark/-/micromark-2.11.4.tgz#d13436138eea826383e822449c9a5c50ee44665a"
@ -11033,11 +11026,6 @@ tty-browserify@0.0.0:
resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6"
integrity sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw== integrity sha512-JVa5ijo+j/sOoHGjw0sxw734b1LhBkQ3bvUGNdxnVXDCX81Yx7TFgnZygxrIIWn23hbfTaMYLwRmAxFyDuFmIw==
twemoji-parser@14.0.x:
version "14.0.0"
resolved "https://registry.yarnpkg.com/twemoji-parser/-/twemoji-parser-14.0.0.tgz#13dabcb6d3a261d9efbf58a1666b182033bf2b62"
integrity sha512-9DUOTGLOWs0pFWnh1p6NF+C3CkQ96PWmEFwhOVmT3WbecRC+68AIqpsnJXygfkFcp4aXbOp8Dwbhh/HQgvoRxA==
type-check@^0.4.0, type-check@~0.4.0: type-check@^0.4.0, type-check@~0.4.0:
version "0.4.0" version "0.4.0"
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1"