Skip to content

Commit

Permalink
fix: use activity+json instead of activitypub+json (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
saschanaz committed Aug 6, 2023
1 parent 089a0ad commit d2d8db4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion built/general.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export default async (_url, lang = null) => {
const favicon = $('link[rel="shortcut icon"]').attr('href') ||
$('link[rel="icon"]').attr('href') ||
'/favicon.ico';
const activityPub = $('link[rel="alternate"][type="application/activitypub+json"]').attr('href') || null;
const activityPub = $('link[rel="alternate"][type="application/activity+json"]').attr('href') || null;
const sensitive = $('.tweet').attr('data-possibly-sensitive') === 'true';
const find = async (path) => {
const target = new URL(path, url.href);
Expand Down
2 changes: 1 addition & 1 deletion src/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ export default async (_url: URL | string, lang: string | null = null): Promise<S
'/favicon.ico';

const activityPub =
$('link[rel="alternate"][type="application/activitypub+json"]').attr('href') || null;
$('link[rel="alternate"][type="application/activity+json"]').attr('href') || null;

const sensitive = $('.tweet').attr('data-possibly-sensitive') === 'true'

Expand Down
2 changes: 1 addition & 1 deletion test/htmls/activitypub.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="alternate" type="application/activitypub+json" href="https://misskey.test/notes/abcdefg">
<link rel="alternate" type="application/activity+json" href="https://misskey.test/notes/abcdefg">

0 comments on commit d2d8db4

Please sign in to comment.