mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
fixups
This commit is contained in:
parent
79a18ce361
commit
67031b837e
1 changed files with 0 additions and 19 deletions
|
@ -91,25 +91,6 @@ class Activity
|
|||
return false;
|
||||
}
|
||||
|
||||
public static function fetch_local($url, $portable_id) {
|
||||
$sql_extra = item_permissions_sql(0, $portable_id);
|
||||
|
||||
// Find the original object
|
||||
$j = q(
|
||||
"select *, id as item_id from item where mid = '%s' and item_wall = 1 $item_normal $sql_extra",
|
||||
dbesc($url)
|
||||
);
|
||||
if ($j) {
|
||||
xchan_query($j, true);
|
||||
$items = fetch_post_tags($j);
|
||||
}
|
||||
if ($items) {
|
||||
return self::encode_item(array_shift($items), true);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
public static function fetch($url, $channel = null, $must_verify = false, $debug = false)
|
||||
{
|
||||
if (!$url) {
|
||||
|
|
Loading…
Reference in a new issue