fixed a potential TypeError by allowing named friends urls (like 'kein-text' instead of the id)