From f153c688f618af05f0e750a9042581b62c0f98f0 Mon Sep 17 00:00:00 2001 From: tusooa Date: Fri, 18 Aug 2023 22:26:29 -0400 Subject: Add changelog --- changelog.d/extra-notifications.add | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/extra-notifications.add (limited to 'changelog.d') diff --git a/changelog.d/extra-notifications.add b/changelog.d/extra-notifications.add new file mode 100644 index 00000000..90f21f54 --- /dev/null +++ b/changelog.d/extra-notifications.add @@ -0,0 +1 @@ +Support showing extra notifications in the notifications column -- cgit v1.2.3-70-g09d2 From c9fd9ceb75520716b6481a5827e736c2f77943e7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 27 Oct 2023 02:48:30 +0300 Subject: changelog --- changelog.d/fix-reports.fix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/fix-reports.fix (limited to 'changelog.d') diff --git a/changelog.d/fix-reports.fix b/changelog.d/fix-reports.fix new file mode 100644 index 00000000..961b8033 --- /dev/null +++ b/changelog.d/fix-reports.fix @@ -0,0 +1 @@ +fix reports now showing reason/content:w -- cgit v1.2.3-70-g09d2 From c8b5b7845da6874b4d4ecbea5ac7003171c5ad29 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sun, 29 Oct 2023 18:29:28 +0200 Subject: Changelog 2.6.0 --- CHANGELOG.md | 25 ++++++++++++++++++++ .../add-taiwanese-aka-hokkien-i18n-support.add | 1 - changelog.d/adminfe.add | 1 - changelog.d/check-changelog.skip | 0 changelog.d/custom-emoji-notif-width.fix | 1 - changelog.d/edit-profile-button.fix | 1 - changelog.d/emoji-picker-button-accessible.fix | 1 - changelog.d/export-subst-hash.fix | 1 - changelog.d/fix-reports.fix | 1 - changelog.d/html-attribute-parsing.fix | 1 - changelog.d/mention-twice.fix | 1 - changelog.d/mentionsline-shouldbreak.fix | 1 - changelog.d/nonascii-tags.fix | 1 - changelog.d/oauth2-token-linger.fix | 1 - changelog.d/parser.fix | 1 - changelog.d/quote-hide-oops.fix | 1 - changelog.d/quote-hide.fix | 1 - changelog.d/quote.add | 1 - changelog.d/react-button-safari.fix | 1 - changelog.d/react-button.fix | 1 - changelog.d/reload-user-pinned.fix | 1 - changelog.d/scroll-emoji-selector-safari.fix | 1 - tools/collect-changelog | 27 ++++++++++++++++++++++ 23 files changed, 52 insertions(+), 20 deletions(-) delete mode 100644 changelog.d/add-taiwanese-aka-hokkien-i18n-support.add delete mode 100644 changelog.d/adminfe.add delete mode 100644 changelog.d/check-changelog.skip delete mode 100644 changelog.d/custom-emoji-notif-width.fix delete mode 100644 changelog.d/edit-profile-button.fix delete mode 100644 changelog.d/emoji-picker-button-accessible.fix delete mode 100644 changelog.d/export-subst-hash.fix delete mode 100644 changelog.d/fix-reports.fix delete mode 100644 changelog.d/html-attribute-parsing.fix delete mode 100644 changelog.d/mention-twice.fix delete mode 100644 changelog.d/mentionsline-shouldbreak.fix delete mode 100644 changelog.d/nonascii-tags.fix delete mode 100644 changelog.d/oauth2-token-linger.fix delete mode 100644 changelog.d/parser.fix delete mode 100644 changelog.d/quote-hide-oops.fix delete mode 100644 changelog.d/quote-hide.fix delete mode 100644 changelog.d/quote.add delete mode 100644 changelog.d/react-button-safari.fix delete mode 100644 changelog.d/react-button.fix delete mode 100644 changelog.d/reload-user-pinned.fix delete mode 100644 changelog.d/scroll-emoji-selector-safari.fix create mode 100755 tools/collect-changelog (limited to 'changelog.d') diff --git a/CHANGELOG.md b/CHANGELOG.md index 3fb72931..fe382b96 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,31 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## 2.6.0 +### Added +- add the initial i18n translation file for Taiwanese (Hokkien), and modify some related files. +- Implemented a very basic instance administration screen +- Implement quoting + +### Fixed +- Keep aspect ratio of custom emoji reaction in notification +- Fix openSettingsModalTab so that it correctly opens Settings modal instead of Admin modal +- Add alt text to emoji picker buttons +- Use export-subst gitattribute to allow tarball builds +- fix reports now showing reason/content +- Fix HTML attribute parsing, discard attributes not strating with a letter +- Make MentionsLine aware of line breaking by non-br elements +- Fix a bug where mentioning a user twice will not fill the mention into the textarea +- Fix parsing non-ascii tags +- Fix OAuth2 token lingering after revocation +- fix regex issue in HTML parser/renderer +- don't display quoted status twice +- fix typo in code that prevented cards from showing at all +- Fix react button not working if reaction accounts are not loaded +- Fix react button misalignment on safari ios +- Fix pinned statuses gone when reloading user timeline +- Fix scrolling emoji selector in modal in safari ios + ## 2.5.1 ### Fixed - Checkboxes in settings can now work with screenreaders diff --git a/changelog.d/add-taiwanese-aka-hokkien-i18n-support.add b/changelog.d/add-taiwanese-aka-hokkien-i18n-support.add deleted file mode 100644 index 53d89805..00000000 --- a/changelog.d/add-taiwanese-aka-hokkien-i18n-support.add +++ /dev/null @@ -1 +0,0 @@ -add the initial i18n translation file for Taiwanese (Hokkien), and modify some related files. \ No newline at end of file diff --git a/changelog.d/adminfe.add b/changelog.d/adminfe.add deleted file mode 100644 index 188c4555..00000000 --- a/changelog.d/adminfe.add +++ /dev/null @@ -1 +0,0 @@ -Implemented a very basic instance administration screen diff --git a/changelog.d/check-changelog.skip b/changelog.d/check-changelog.skip deleted file mode 100644 index e69de29b..00000000 diff --git a/changelog.d/custom-emoji-notif-width.fix b/changelog.d/custom-emoji-notif-width.fix deleted file mode 100644 index da118f6b..00000000 --- a/changelog.d/custom-emoji-notif-width.fix +++ /dev/null @@ -1 +0,0 @@ -Keep aspect ratio of custom emoji reaction in notification diff --git a/changelog.d/edit-profile-button.fix b/changelog.d/edit-profile-button.fix deleted file mode 100644 index 5a92765c..00000000 --- a/changelog.d/edit-profile-button.fix +++ /dev/null @@ -1 +0,0 @@ -Fix openSettingsModalTab so that it correctly opens Settings modal instead of Admin modal diff --git a/changelog.d/emoji-picker-button-accessible.fix b/changelog.d/emoji-picker-button-accessible.fix deleted file mode 100644 index 12898a1a..00000000 --- a/changelog.d/emoji-picker-button-accessible.fix +++ /dev/null @@ -1 +0,0 @@ -Add alt text to emoji picker buttons diff --git a/changelog.d/export-subst-hash.fix b/changelog.d/export-subst-hash.fix deleted file mode 100644 index fb0d85cb..00000000 --- a/changelog.d/export-subst-hash.fix +++ /dev/null @@ -1 +0,0 @@ -Use export-subst gitattribute to allow tarball builds diff --git a/changelog.d/fix-reports.fix b/changelog.d/fix-reports.fix deleted file mode 100644 index 961b8033..00000000 --- a/changelog.d/fix-reports.fix +++ /dev/null @@ -1 +0,0 @@ -fix reports now showing reason/content:w diff --git a/changelog.d/html-attribute-parsing.fix b/changelog.d/html-attribute-parsing.fix deleted file mode 100644 index 0952f773..00000000 --- a/changelog.d/html-attribute-parsing.fix +++ /dev/null @@ -1 +0,0 @@ -Fix HTML attribute parsing, discard attributes not strating with a letter diff --git a/changelog.d/mention-twice.fix b/changelog.d/mention-twice.fix deleted file mode 100644 index 0e4b71df..00000000 --- a/changelog.d/mention-twice.fix +++ /dev/null @@ -1 +0,0 @@ -Fix a bug where mentioning a user twice will not fill the mention into the textarea diff --git a/changelog.d/mentionsline-shouldbreak.fix b/changelog.d/mentionsline-shouldbreak.fix deleted file mode 100644 index 33ee8d2c..00000000 --- a/changelog.d/mentionsline-shouldbreak.fix +++ /dev/null @@ -1 +0,0 @@ -Make MentionsLine aware of line breaking by non-br elements diff --git a/changelog.d/nonascii-tags.fix b/changelog.d/nonascii-tags.fix deleted file mode 100644 index e4c6dc82..00000000 --- a/changelog.d/nonascii-tags.fix +++ /dev/null @@ -1 +0,0 @@ -Fix parsing non-ascii tags diff --git a/changelog.d/oauth2-token-linger.fix b/changelog.d/oauth2-token-linger.fix deleted file mode 100644 index da4e4631..00000000 --- a/changelog.d/oauth2-token-linger.fix +++ /dev/null @@ -1 +0,0 @@ -Fix OAuth2 token lingering after revocation diff --git a/changelog.d/parser.fix b/changelog.d/parser.fix deleted file mode 100644 index 13bac0bf..00000000 --- a/changelog.d/parser.fix +++ /dev/null @@ -1 +0,0 @@ -fix regex issue in HTML parser/renderer diff --git a/changelog.d/quote-hide-oops.fix b/changelog.d/quote-hide-oops.fix deleted file mode 100644 index d93c0d29..00000000 --- a/changelog.d/quote-hide-oops.fix +++ /dev/null @@ -1 +0,0 @@ -fix typo in code that prevented cards from showing at all diff --git a/changelog.d/quote-hide.fix b/changelog.d/quote-hide.fix deleted file mode 100644 index 678fc3bc..00000000 --- a/changelog.d/quote-hide.fix +++ /dev/null @@ -1 +0,0 @@ -don't display quoted status twice diff --git a/changelog.d/quote.add b/changelog.d/quote.add deleted file mode 100644 index b43b6aba..00000000 --- a/changelog.d/quote.add +++ /dev/null @@ -1 +0,0 @@ -Implement quoting diff --git a/changelog.d/react-button-safari.fix b/changelog.d/react-button-safari.fix deleted file mode 100644 index 9846d50d..00000000 --- a/changelog.d/react-button-safari.fix +++ /dev/null @@ -1 +0,0 @@ -Fix react button misalignment on safari ios diff --git a/changelog.d/react-button.fix b/changelog.d/react-button.fix deleted file mode 100644 index c2222fb6..00000000 --- a/changelog.d/react-button.fix +++ /dev/null @@ -1 +0,0 @@ -Fix react button not working if reaction accounts are not loaded diff --git a/changelog.d/reload-user-pinned.fix b/changelog.d/reload-user-pinned.fix deleted file mode 100644 index db241c20..00000000 --- a/changelog.d/reload-user-pinned.fix +++ /dev/null @@ -1 +0,0 @@ -Fix pinned statuses gone when reloading user timeline diff --git a/changelog.d/scroll-emoji-selector-safari.fix b/changelog.d/scroll-emoji-selector-safari.fix deleted file mode 100644 index 3f5dda7d..00000000 --- a/changelog.d/scroll-emoji-selector-safari.fix +++ /dev/null @@ -1 +0,0 @@ -Fix scrolling emoji selector in modal in safari ios diff --git a/tools/collect-changelog b/tools/collect-changelog new file mode 100755 index 00000000..1e12d564 --- /dev/null +++ b/tools/collect-changelog @@ -0,0 +1,27 @@ +#!/bin/sh + +collectType() { + local suffix="$1" + local header="$2" + local printed=0 + for file in changelog.d/*."$suffix"; do + if [ '!' -f "$file" ]; then + continue + fi + if [ "$printed" = 0 ]; then + echo + echo "### $header" + printed=1 + fi + # Normalize any trailing newlines/spaces, etc. + echo "- $(cat "$file")" + done +} + +collectType security Security +collectType change Changed +collectType add Added +collectType fix Fixed +collectType remove Removed + +rm changelog.d/* -- cgit v1.2.3-70-g09d2 From 2c9930bd5b5c1279e0890aeba673ad6b5ce2af18 Mon Sep 17 00:00:00 2001 From: NEETzsche Date: Thu, 9 Nov 2023 15:03:21 -0700 Subject: Display the latest scrobble under a user's name --- changelog.d/show-recent-scrobble.skip | 1 + src/components/settings_modal/tabs/filtering_tab.vue | 5 +++++ src/components/status/status.js | 12 ++++++++++-- src/components/status/status.vue | 20 +++++++++++++++++++- src/i18n/en.json | 1 + src/modules/config.js | 1 + src/modules/statuses.js | 17 +++++++++++++++++ src/services/api/api.service.js | 19 +++++++++++++++++++ 8 files changed, 73 insertions(+), 3 deletions(-) create mode 100644 changelog.d/show-recent-scrobble.skip (limited to 'changelog.d') diff --git a/changelog.d/show-recent-scrobble.skip b/changelog.d/show-recent-scrobble.skip new file mode 100644 index 00000000..9227de06 --- /dev/null +++ b/changelog.d/show-recent-scrobble.skip @@ -0,0 +1 @@ +Shows the most recent scrobble under each post when available diff --git a/src/components/settings_modal/tabs/filtering_tab.vue b/src/components/settings_modal/tabs/filtering_tab.vue index 41d1b54f..89fdef1a 100644 --- a/src/components/settings_modal/tabs/filtering_tab.vue +++ b/src/components/settings_modal/tabs/filtering_tab.vue @@ -91,6 +91,11 @@ {{ $t('settings.hide_attachments_in_convo') }} +
  • + + {{ $t('settings.hide_scrobbles') }} + +
  • name.charAt(0).toUpperCase() + name.slice(1) @@ -415,6 +417,12 @@ const Status = { }, shouldDisplayQuote () { return this.quotedStatus && this.displayQuote + }, + scrobblePresent () { + return !this.mergedConfig.hideScrobbles && this.status.user.latestScrobble && this.status.user.latestScrobble.artist + }, + scrobble () { + return this.status.user.latestScrobble } }, methods: { diff --git a/src/components/status/status.vue b/src/components/status/status.vue index c49a9e7b..ad625643 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -249,6 +249,25 @@
    +
    + + {{ scrobble.artist }} — {{ scrobble.title }} + + + + +
    +
    - ({ export const defaultState = () => ({ allStatuses: [], + scrobblesNextFetch: {}, allStatusesObject: {}, conversationsObject: {}, maxId: 0, @@ -120,8 +121,24 @@ const sortTimeline = (timeline) => { return timeline } +const getLatestScrobble = (state, user) => { + if (state.scrobblesNextFetch[user.id] && state.scrobblesNextFetch[user.id] > Date.now()) { + return + } + + state.scrobblesNextFetch[user.id] = Date.now() + 24 * 60 * 60 * 1000 + apiService.fetchScrobbles({ accountId: user.id }).then((scrobbles) => { + if (scrobbles.length > 0) { + user.latestScrobble = scrobbles[0] + + state.scrobblesNextFetch[user.id] = Date.now() + 60 * 1000 + } + }) +} + // Add status to the global storages (arrays and objects maintaining statuses) except timelines const addStatusToGlobalStorage = (state, data) => { + getLatestScrobble(state, data.user) const result = mergeOrAdd(state.allStatuses, state.allStatusesObject, data) if (result.new) { // Add to conversation diff --git a/src/services/api/api.service.js b/src/services/api/api.service.js index c6bca10b..f45e3958 100644 --- a/src/services/api/api.service.js +++ b/src/services/api/api.service.js @@ -107,6 +107,7 @@ const PLEROMA_ANNOUNCEMENTS_URL = '/api/v1/pleroma/admin/announcements' const PLEROMA_POST_ANNOUNCEMENT_URL = '/api/v1/pleroma/admin/announcements' const PLEROMA_EDIT_ANNOUNCEMENT_URL = id => `/api/v1/pleroma/admin/announcements/${id}` const PLEROMA_DELETE_ANNOUNCEMENT_URL = id => `/api/v1/pleroma/admin/announcements/${id}` +const PLEROMA_SCROBBLES_URL = id => `/api/v1/pleroma/accounts/${id}/scrobbles` const PLEROMA_ADMIN_CONFIG_URL = '/api/pleroma/admin/config' const PLEROMA_ADMIN_DESCRIPTIONS_URL = '/api/pleroma/admin/config/descriptions' @@ -1765,6 +1766,23 @@ const installFrontend = ({ credentials, payload }) => { }) } +const fetchScrobbles = ({ accountId, limit = 1 }) => { + let url = PLEROMA_SCROBBLES_URL(accountId) + const params = [['limit', limit]] + const queryString = map(params, (param) => `${param[0]}=${param[1]}`).join('&') + url += `?${queryString}` + return fetch(url, {}) + .then((response) => { + if (response.ok) { + return response.json() + } else { + return { + error: response + } + } + }) +} + const apiService = { verifyCredentials, fetchTimeline, @@ -1878,6 +1896,7 @@ const apiService = { postAnnouncement, editAnnouncement, deleteAnnouncement, + fetchScrobbles, adminFetchAnnouncements, fetchInstanceDBConfig, fetchInstanceConfigDescriptions, -- cgit v1.2.3-70-g09d2 From b2c5520d337f313f4824186578428c2ed1d13b61 Mon Sep 17 00:00:00 2001 From: tusooa Date: Sat, 11 Nov 2023 19:26:22 -0500 Subject: Add changelog for frontend tab crash fix --- changelog.d/fix-admin-crash-when-no-primary-fe-set.fix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/fix-admin-crash-when-no-primary-fe-set.fix (limited to 'changelog.d') diff --git a/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix b/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix new file mode 100644 index 00000000..78eae3be --- /dev/null +++ b/changelog.d/fix-admin-crash-when-no-primary-fe-set.fix @@ -0,0 +1 @@ +Fix frontend admin tab crashing when no primary frontend is set -- cgit v1.2.3-70-g09d2 From 5ff14837a76fb7b7501ca4603937492e18ceadcf Mon Sep 17 00:00:00 2001 From: tusooa Date: Sun, 12 Nov 2023 16:47:59 -0500 Subject: Add changelog --- changelog.d/react-more-actions-fix.fix | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/react-more-actions-fix.fix (limited to 'changelog.d') diff --git a/changelog.d/react-more-actions-fix.fix b/changelog.d/react-more-actions-fix.fix new file mode 100644 index 00000000..9ab41de2 --- /dev/null +++ b/changelog.d/react-more-actions-fix.fix @@ -0,0 +1 @@ +Add aria attributes to react and extra buttons -- cgit v1.2.3-70-g09d2