app.net, facebook, twitter and statusnet: Preview now shows the post like it will appear on other networks.

This commit is contained in:
Michael Vogel 2014-07-09 22:31:52 +02:00
parent f0efa3cae2
commit 9177ee2ecb
5 changed files with 166 additions and 4 deletions

View file

@ -692,6 +692,9 @@ function fbsync_createlike($a, $uid, $self_id, $self, $contacts, $like) {
function fbsync_fetch_contact($uid, $contact, $create_user) {
if($contact->url == "")
return(0);
// Check if the unique contact is existing
// To-Do: only update once a while
$r = q("SELECT id FROM unique_contacts WHERE url='%s' LIMIT 1",