From 9312c9a8d28ff571122d8ff3c3c4e6ad2750795b Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 16 Nov 2024 22:21:35 +0700 Subject: [PATCH 1/3] Add Bluesky. Closes #106. --- collection/sites/bluesky.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 collection/sites/bluesky.yml diff --git a/collection/sites/bluesky.yml b/collection/sites/bluesky.yml new file mode 100644 index 0000000..08db785 --- /dev/null +++ b/collection/sites/bluesky.yml @@ -0,0 +1,25 @@ +attributes: + embedder: + filterChain: [] + required: true + url: + filterChain: "urldecode" + required: true +example: + - "https://bsky.app/profile/bsky.app/post/3kkrqzuydho2v" + - "https://bsky.app/profile/bnewbold.net/post/3kxjq2auebs2f" +extract: "#https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#" +homepage: "https://bsky.app/" +host: "bsky.app" +iframe: + data-s9e-livepreview-ignore-attrs: style + height: 600 + onload: "let c=new MessageChannel;c.port1.onmessage=e=>this.style.height=e.data+'px';this.contentWindow.postMessage('s9e:init','*',[c.port2])" + src: "https://s9e.github.io/iframe/2/bluesky.min.html##" + width: 600 +name: "Bluesky" +scrape: + extract: "#https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#" + match: "#/profile/[^/]+/post/.#" +source: "https://embed.bsky.app/" +tags: "social" From ac413d6ed879b386144e8c25c042cc775b6fc735 Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 16 Nov 2024 22:29:43 +0700 Subject: [PATCH 2/3] Fix MSSQL-2019 tests. --- .github/workflows/tests.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 95bfdd6..340d9a9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -362,20 +362,20 @@ jobs: strategy: matrix: include: - - php: '7.2' + - php: '7.3' db: "sqlite3" - - php: '7.2' + - php: '7.3' db: "mcr.microsoft.com/mssql/server:2017-latest" db_alias: 'MSSQL 2017' - - php: '7.2' - db: "mcr.microsoft.com/mssql/server:2019-latest" + - php: '7.3' + db: "mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04" db_alias: 'MSSQL 2019' name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }} services: mssql: - image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-latest' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }} + image: ${{ matrix.db != 'mcr.microsoft.com/mssql/server:2017-latest' && matrix.db != 'mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04' && 'mcr.microsoft.com/mssql/server:2017-latest' || matrix.db }} env: SA_PASSWORD: "Pssw0rd_12" ACCEPT_EULA: "y" @@ -415,7 +415,7 @@ jobs: env: MATRIX_DB: ${{ matrix.db }} run: | - if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-latest' ] + if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04' ] then db='mssql' else From f4739c60a586965c2524dc93831fef7c8ccf2b55 Mon Sep 17 00:00:00 2001 From: rxu Date: Sat, 16 Nov 2024 23:02:59 +0700 Subject: [PATCH 3/3] Update Bluesky in according to the latest text-formatter changes. --- collection/sites/bluesky.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collection/sites/bluesky.yml b/collection/sites/bluesky.yml index 08db785..2fbed75 100644 --- a/collection/sites/bluesky.yml +++ b/collection/sites/bluesky.yml @@ -8,7 +8,7 @@ attributes: example: - "https://bsky.app/profile/bsky.app/post/3kkrqzuydho2v" - "https://bsky.app/profile/bnewbold.net/post/3kxjq2auebs2f" -extract: "#https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#" +extract: "#^https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#" homepage: "https://bsky.app/" host: "bsky.app" iframe: