From 3617bdc9cbe80ec7458108611eafd312eea02f83 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 19 Oct 2023 01:12:54 +0800 Subject: [PATCH 1/4] Try tag_name Why this action so complicated --- .github/workflows/prodtag.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/prodtag.yml b/.github/workflows/prodtag.yml index 0df41be2..bf206fc0 100644 --- a/.github/workflows/prodtag.yml +++ b/.github/workflows/prodtag.yml @@ -23,5 +23,6 @@ jobs: - run: cd dist && zip -r ../phanpy-dist.zip . && cd .. - uses: softprops/action-gh-release@v1 with: + tag_name: ${{ github.ref_name }} generate_release_notes: true files: phanpy-dist.zip From 3eda1e2267c4e08de2990e272ef78d0dbc5eb56a Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 19 Oct 2023 01:13:12 +0800 Subject: [PATCH 2/4] Fix familiarFollowers call not working --- src/components/account-info.jsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/account-info.jsx b/src/components/account-info.jsx index b97e9762..3e8bd862 100644 --- a/src/components/account-info.jsx +++ b/src/components/account-info.jsx @@ -223,9 +223,11 @@ function AccountInfo({ // On first load, fetch familiar followers, merge to top of results' `value` // Remove dups on every fetch if (firstLoad) { - const familiarFollowers = await masto.v1.accounts - .familiarFollowers(id) - .fetch(); + const familiarFollowers = await masto.v1.accounts.familiarFollowers.fetch( + { + id: [id], + }, + ); familiarFollowersCache.current = familiarFollowers[0].accounts; newValue = [ ...familiarFollowersCache.current, From c1588322aa7bc7b18be61160b29f52b778b97212 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 19 Oct 2023 01:13:37 +0800 Subject: [PATCH 3/4] Bunch the avatars --- src/pages/status.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/pages/status.css b/src/pages/status.css index afe32dcd..2b661da6 100644 --- a/src/pages/status.css +++ b/src/pages/status.css @@ -30,6 +30,10 @@ .ancestors-indicator { font-size: 70% !important; + + & > .avatar:not(:first-child) { + margin-left: -4px; + } } .ancestors-indicator:not([hidden]) { animation: slide-up 0.3s both ease-out 0.3s; From cd57e97e2b708a29b9049c48a8da549594393c47 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Thu, 19 Oct 2023 01:14:23 +0800 Subject: [PATCH 4/4] Fix Preact wrongly rearrange the elements --- src/pages/account-statuses.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/account-statuses.jsx b/src/pages/account-statuses.jsx index 0126a399..49335da9 100644 --- a/src/pages/account-statuses.jsx +++ b/src/pages/account-statuses.jsx @@ -128,6 +128,7 @@ function AccountStatuses() { to={`/${instance}/a/${id}`} class="insignificant filter-clear" title="Clear filters" + key="clear-filters" >