Skip to content

Commit d3446b3

Browse files
authored
Merge pull request #107 from rxu/add-bluesky
Add Bluesky. Closes #106.
2 parents 09c3b0c + f4739c6 commit d3446b3

2 files changed

Lines changed: 31 additions & 6 deletions

File tree

.github/workflows/tests.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -362,20 +362,20 @@ jobs:
362362
strategy:
363363
matrix:
364364
include:
365-
- php: '7.2'
365+
- php: '7.3'
366366
db: "sqlite3"
367-
- php: '7.2'
367+
- php: '7.3'
368368
db: "mcr.microsoft.com/mssql/server:2017-latest"
369369
db_alias: 'MSSQL 2017'
370-
- php: '7.2'
371-
db: "mcr.microsoft.com/mssql/server:2019-latest"
370+
- php: '7.3'
371+
db: "mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04"
372372
db_alias: 'MSSQL 2019'
373373

374374
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
375375

376376
services:
377377
mssql:
378-
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 }}
378+
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 }}
379379
env:
380380
SA_PASSWORD: "Pssw0rd_12"
381381
ACCEPT_EULA: "y"
@@ -415,7 +415,7 @@ jobs:
415415
env:
416416
MATRIX_DB: ${{ matrix.db }}
417417
run: |
418-
if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-latest' ]
418+
if [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2017-latest' ] || [ $MATRIX_DB == 'mcr.microsoft.com/mssql/server:2019-CU27-ubuntu-20.04' ]
419419
then
420420
db='mssql'
421421
else

collection/sites/bluesky.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
attributes:
2+
embedder:
3+
filterChain: []
4+
required: true
5+
url:
6+
filterChain: "urldecode"
7+
required: true
8+
example:
9+
- "https://bsky.app/profile/bsky.app/post/3kkrqzuydho2v"
10+
- "https://bsky.app/profile/bnewbold.net/post/3kxjq2auebs2f"
11+
extract: "#^https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#"
12+
homepage: "https://bsky.app/"
13+
host: "bsky.app"
14+
iframe:
15+
data-s9e-livepreview-ignore-attrs: style
16+
height: 600
17+
onload: "let c=new MessageChannel;c.port1.onmessage=e=>this.style.height=e.data+'px';this.contentWindow.postMessage('s9e:init','*',[c.port2])"
18+
src: "https://s9e.github.io/iframe/2/bluesky.min.html#<xsl:value-of select=\"@url\"/>#<xsl:value-of select=\"@embedder\"/>"
19+
width: 600
20+
name: "Bluesky"
21+
scrape:
22+
extract: "#https://(?'embedder'[.\\w]+)/oembed.*?url=(?'url'[\\w%.]+)#"
23+
match: "#/profile/[^/]+/post/.#"
24+
source: "https://embed.bsky.app/"
25+
tags: "social"

0 commit comments

Comments
 (0)