mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:50:11 +00:00
Some more updated queries
This commit is contained in:
parent
41a81624a2
commit
0ac725dc47
7 changed files with 26 additions and 27 deletions
|
@ -680,8 +680,9 @@ function conversation(App $a, $items, $mode, $update, $preview = false) {
|
|||
$hashtags = array();
|
||||
$mentions = array();
|
||||
|
||||
$taglist = dba::p("SELECT `type`, `term`, `url` FROM `term` WHERE `otype` = ? AND `oid` = ? AND `type` IN (?, ?) ORDER BY `tid`",
|
||||
intval(TERM_OBJ_POST), intval($item['id']), intval(TERM_HASHTAG), intval(TERM_MENTION));
|
||||
$taglist = dba::select('term', array('type', 'term', 'url'),
|
||||
array("`otype` = ? AND `oid` = ? AND `type` IN (?, ?)", TERM_OBJ_POST, $item['id'], TERM_HASHTAG, TERM_MENTION),
|
||||
array('order' => array('tid')));
|
||||
|
||||
while ($tag = dba::fetch($taglist)) {
|
||||
if ($tag["url"] == "") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue