]> git.mxchange.org Git - friendica-addons.git/commitdiff
[twitter] Use correct variable to store application name
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 09:22:43 +0000 (04:22 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 3 Dec 2022 09:22:43 +0000 (04:22 -0500)
- Address https://github.com/friendica/friendica/issues/11993#issuecomment-1336015957

twitter/twitter.php

index 197af3f225d61146bed1c6320a7b3b29bbecc127..62b1b6a9e071b15fe7cf066c96ba90608576b029 100644 (file)
@@ -882,7 +882,7 @@ function twitter_post_hook(App $a, array &$b)
                        }
 
                        if (!empty($application_name)) {
-                               DI::config()->set('twitter', 'application_name', strip_tags($result->source));
+                               DI::config()->set('twitter', 'application_name', strip_tags($application_name));
                        }
                }
        }