Skip to content

Commit

Permalink
feat(PreviewCard): disable PeerTube support for now
Browse files Browse the repository at this point in the history
it's not ready yet
  • Loading branch information
GeopJr committed May 16, 2023
1 parent 3d602c7 commit d4aade6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/API/Status/PreviewCard.vala
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ public class Tuba.API.PreviewCard : Entity {

public bool is_peertube {
get {
bool url_pt = url.last_index_of ("/videos/watch/") > -1;
// Disable PeerTube support for now
// see #253
#if false
bool url_pt = url.last_index_of ("/videos/watch/") > -1;

return kind == "video" && provider_name == "PeerTube" && url_pt;
return kind == "video" && provider_name == "PeerTube" && url_pt;
#else
return false;
#endif
}
}

Expand Down

0 comments on commit d4aade6

Please sign in to comment.