Commit 010fa83c authored by Mario's avatar Mario Committed by Mario

diaspora: exclude xchan_networks rss, anon and unknown from the query to make...

diaspora: exclude xchan_networks rss, anon and unknown from the query to make the results more reliable


(cherry picked from commit 5cb4c1b2)
parent f9a1144a
......@@ -1189,7 +1189,7 @@ function diaspora_bb_to_markdown_bb(&$x) {
function diaspora_bb_to_markdown_mention_callback($match) {
$r = q("select xchan_addr, xchan_url from xchan where xchan_url = '%s'",
$r = q("select xchan_addr, xchan_url from xchan where xchan_url = '%s' and xchan_network not in('rss', 'anon', 'unknown')",
dbesc($match[2])
);
......@@ -1204,7 +1204,7 @@ function diaspora_bb_to_markdown_mention_callback($match) {
function diaspora_bb_to_markdown_fmention_callback($match) {
$r = q("select xchan_addr, xchan_url from xchan where xchan_url = '%s'",
$r = q("select xchan_addr, xchan_url from xchan where xchan_url = '%s' and xchan_network not in('rss', 'anon', 'unknown')",
dbesc($match[2])
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment