Friendica Communications Platform (please note that this is a clone of the repository at github, issues are handled there) https://friendi.ca
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2454 lines
78 KiB

10 years ago
8 years ago
4 years ago
10 years ago
10 years ago
10 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. <?php
  2. /**
  3. * @file include/items.php
  4. */
  5. use Friendica\ParseUrl;
  6. require_once 'include/bbcode.php';
  7. require_once 'include/oembed.php';
  8. require_once 'include/salmon.php';
  9. require_once 'include/crypto.php';
  10. require_once 'include/Photo.php';
  11. require_once 'include/tags.php';
  12. require_once 'include/files.php';
  13. require_once 'include/text.php';
  14. require_once 'include/email.php';
  15. require_once 'include/threads.php';
  16. require_once 'include/socgraph.php';
  17. require_once 'include/plaintext.php';
  18. require_once 'include/ostatus.php';
  19. require_once 'include/feed.php';
  20. require_once 'include/Contact.php';
  21. require_once 'mod/share.php';
  22. require_once 'include/enotify.php';
  23. require_once 'include/dfrn.php';
  24. require_once 'include/group.php';
  25. /// @TODO one day with composer autoloader no more needed
  26. require_once 'library/defuse/php-encryption-1.2.1/Crypto.php';
  27. function construct_verb($item) {
  28. if ($item['verb']) {
  29. return $item['verb'];
  30. }
  31. return ACTIVITY_POST;
  32. }
  33. /* limit_body_size()
  34. *
  35. * The purpose of this function is to apply system message length limits to
  36. * imported messages without including any embedded photos in the length
  37. */
  38. if (!