Skip to content

Commit

Permalink
fix: links preview (#1126)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgithubprofile authored Nov 5, 2023
1 parent d3d7483 commit 596ed47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions minimize.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ if (!args.sha) {

var vars = {
test : {
proxypath : '"https://test.pocketnet.app:8899/"',
proxypath : '"http://test.pocketnet.app:8898/"',
domain : _meta[args.project].turl,
packageVersion: package.version,
test : '<script>window.testpocketnet = true;</script>',
Expand All @@ -134,7 +134,7 @@ var vars = {
run : args.run || false,
},
prod : {
proxypath : '"https://pocketnet.app:8899/"',
proxypath : '"http://pocketnet.app:8898/"',
domain : _meta[args.project].url,
packageVersion: package.version,
test : '',
Expand Down
10 changes: 8 additions & 2 deletions php/og.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,14 @@ public function get(){
$this->currentOg['title']= urldecode($r->c);
$title = true;
}

$this->currentOg['description'] = substr(strip_tags(urldecode($r->m)), 0, 130).'...';

if(isset($r->s) && isset($r->s->v) && $r->s->v == 'a'){
$this->currentOg['description'] = '';
}
else{
$this->currentOg['description'] = substr(strip_tags(urldecode($r->m)), 0, 130).'...';
}

$description = true;

$this->currentOg['type'] = 'article';
Expand Down

0 comments on commit 596ed47

Please sign in to comment.