mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-22 07:23:40 +00:00
[ijpost] Remove references to obsolete virtual field item.tag
This commit is contained in:
parent
5e39c8d2c2
commit
8b291f534e
1 changed files with 2 additions and 8 deletions
|
@ -12,6 +12,7 @@ use Friendica\Content\Text\BBCode;
|
||||||
use Friendica\Core\Hook;
|
use Friendica\Core\Hook;
|
||||||
use Friendica\Core\Logger;
|
use Friendica\Core\Logger;
|
||||||
use Friendica\DI;
|
use Friendica\DI;
|
||||||
|
use Friendica\Model\Tag;
|
||||||
use Friendica\Util\DateTimeFormat;
|
use Friendica\Util\DateTimeFormat;
|
||||||
use Friendica\Util\Network;
|
use Friendica\Util\Network;
|
||||||
use Friendica\Util\XML;
|
use Friendica\Util\XML;
|
||||||
|
@ -189,7 +190,7 @@ function ijpost_send(&$a, &$b)
|
||||||
$title = $b['title'];
|
$title = $b['title'];
|
||||||
$post = BBCode::convert($b['body']);
|
$post = BBCode::convert($b['body']);
|
||||||
$post = XML::escape($post);
|
$post = XML::escape($post);
|
||||||
$tags = ijpost_get_tags($b['tag']);
|
$tags = Tag::getCSVByURIId($b['uri-id'], [Tag::HASHTAG]);
|
||||||
|
|
||||||
$date = DateTimeFormat::convert($b['created'], $tz);
|
$date = DateTimeFormat::convert($b['created'], $tz);
|
||||||
$year = intval(substr($date,0,4));
|
$year = intval(substr($date,0,4));
|
||||||
|
@ -233,10 +234,3 @@ EOT;
|
||||||
Logger::log('posted to insanejournal: ' . $x ? $x : '', Logger::DEBUG);
|
Logger::log('posted to insanejournal: ' . $x ? $x : '', Logger::DEBUG);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function ijpost_get_tags($post)
|
|
||||||
{
|
|
||||||
preg_match_all("/\]([^\[#]+)\[/", $post, $matches);
|
|
||||||
$tags = implode(', ', $matches[1]);
|
|
||||||
return $tags;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue