Skip to content
Snippets Groups Projects
Commit fe72b512 authored by Gandalf's avatar Gandalf
Browse files

Merge branch 'thecrazygm-dev' into 'autoclave'

opengraph fix for facebook (and other sites)

Closes #6

See merge request hive-group/condenser!16
parents 011587a9 c6d10e74
No related branches found
No related tags found
1 merge request!16opengraph fix for facebook (and other sites)
......@@ -31,8 +31,15 @@ function build_scheme(scheme, post) {
}
function allowed_app(app) {
// apps which follow (reciprocate) canonical URLs (as of 2019-10-15)
const whitelist = ['steemit', 'esteem', 'steempeak', 'travelfeed'];
// apps which follow (reciprocate) canonical URLs (as of 2020-03-21)
const whitelist = [
'hive',
'peakd',
'steemit',
'esteem',
'steempeak',
'travelfeed',
];
return whitelist.includes(app);
}
......@@ -48,6 +55,6 @@ export function makeCanonicalLink(post, metadata) {
scheme = Apps[app] ? Apps[app].url_scheme : null;
}
}
if (!scheme) scheme = Apps['steemit'].url_scheme;
if (!scheme) scheme = Apps['hive'].url_scheme;
return build_scheme(scheme, post);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment