In Wall Post, when creating a post and tag a friend, the list sometime takes long time to show. During that time, user would just hit enter. If this happens, the friend's name is written into database instead of the GUID.
In ossn_object, "post":"test","friend":"john"
The correct is "post":"test","friend":"1"
The result is broken HTML on wall page.
thanks for the reply. the function works, but it seems my logic doesn't
Although it's now safe from broken html, now it doesn't tag the friend's name
I'll continue on github
To check guid try to use function below :
ossn_user_by_guid(xx)
Please report issue to github
it doesn't work if the input tag is all numeric and not actual guid. Need a function to check if the value is a valid guid.
Help
never mind. i kinda fix it, .. i think.
OssnWall.php
public function Post() {
...
if(!empty($friends)) { if(is_numeric($friends)) { $wallpost['friend'] = $friends;}}
...
}
Due to the many requests in the past for additonal features and components we have decided to develope a premium version. Features like Hashtags, Videos, Polls, Events, Stories, Link Preview, etc included in it.
$199 (Life Time)